package cn.findviewbydream.evil.main.entity;

import java.io.Serializable;
import java.util.Date;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-11-7 上午11:16
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：贴子点赞实体
 ********************************************/
public class PostPraiseEntity implements Serializable
{
    private int postPraiseId;/*点赞的id,自增*/
    private int postId;/*此条点赞对应的贴子*/
    private String userName;/*此条点赞对应的用户账号::无需实体,仅仅比对记录用户账号即可*/
    private Date postPraiseTime;/*日期时间*/

    public PostPraiseEntity()
    {
    }

    public PostPraiseEntity(int postPraiseId, int postId, String userName, Date postPraiseTime)
    {
        this.postPraiseId = postPraiseId;
        this.postId = postId;
        this.userName = userName;
        this.postPraiseTime = postPraiseTime;
    }

    public int getPostPraiseId()
    {
        return postPraiseId;
    }

    public void setPostPraiseId(int postPraiseId)
    {
        this.postPraiseId = postPraiseId;
    }

    public int getPostId()
    {
        return postId;
    }

    public void setPostId(int postId)
    {
        this.postId = postId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public Date getPostPraiseTime()
    {
        return postPraiseTime;
    }

    public void setPostPraiseTime(Date postPraiseTime)
    {
        this.postPraiseTime = postPraiseTime;
    }

    @Override
    public String toString()
    {
        return "PostPraiseEntity{" +
                "postPraiseId=" + postPraiseId +
                ", postId=" + postId +
                ", userName='" + userName + '\'' +
                ", postPraiseTime=" + postPraiseTime +
                '}';
    }
}
